"""
__project__ = 'selenium'
__file_name__ = 'selenium1.1'
__author__ = 'yiyi'
__time_ = '$2020-12-21 16:33:00'
__product_name = 'selenium 学习'
-*- coding:utf-8 -*-
"""
#python 有大量第三方库
#工具python3+selenium3
#自动测试4步骤   1打开浏览器   2打开网页   3找到元素  4操作元素

from selenium import webdriver
driver = webdriver.Chrome()
driver.get("https://www.baidu.com")
ele = driver.find_element_by_id('kw')
ele.clear()
ele.send_keys("selenium")